<!-- directive:title 代码自动化生产 产品 -->
<!-- directive:breadcrumb 自动化 -->
<div class="yxt14 panel-body">
    <p>1 子项checkbox使用checklist-model组件 保证选中的项映射到变量数组中</p>
    <p>2 All项checkbox使用ng-checked="selectList.length==yxt14datalist.length&&selectList.length!=0" 实时判断全选</p>
    <p>3 All项checkbox上一层加ng-click="selectAll()" 点击全选或反选 方式为操作变量数组</p>
    <p>4 初始化变量数组为空</p>
    <p>5 刷新一次清空一次变量数组</p>
    <div class="yxt14breadcrumb">
        <a href="javascript:;">当前位置 : 收入分配</a><a href="javascript:;">二业务</a>
    </div>
    <div class="container-fluid">
        <div class="yxt14main panel">
            <div class="yxt14title"><i></i>  二业务</div>
            <div class="yxt14nav">
                <a class="yxt14navson yxt14active" ng-click="goto('income.busi_brower')">浏览器</a>
                <a class="yxt14navson " ng-click="goto('income.busi_down')">下载器</a>
            </div>
            <form class="form-inline">
                <div class="form-group">
                    <le-date style="width:200px;" bdate="obj.begin" edate="obj.end"
                    ></le-date>
                </div>
                <div class="form-group">
                    <input class="form-control" type="text" name="keyWord"
                        ng-model="obj.keyWord" placeholder="请输入关键字"
                    />
                </div>
                <div class="form-group">
                    <input select2 config="dataSet.customer" ng-model="obj.username"
                        select2-model="dataSet.username" class="form-control" placeholder="全部用户"
                    />
                </div>
                <div class="form-group">
                    <button ng-click="search()" class="btn yxt14btn-red">搜&nbsp;&nbsp;索</button>
                </div>
                <div class="form-group">
                    <button ng-click="reset()" class="btn yxt14btn-gray">重&nbsp;&nbsp;置</button>
                </div>
                <div class="form-group pull-right">
                    <button class="btn yxt14btn-blue" ng-click="synchronizationItem()">
                        <i class="glyphicon glyphicon-plus"></i> 同步数据
                    </button>
                </div>
                <div class="form-group pull-right">
                    <button class="btn yxt14btn-blue" ng-click="exportItem()">
                        <i class="glyphicon glyphicon-plus"></i> 导出
                    </button>
                </div>
                <div style="clear:both;"></div>
            </form>
            {{selectList}} // {{selectList.length}}=={{yxt14datalist.length}}
            <div class="table-responsive main-table-striped">
                <table class="table" ng-init="selectBtn(this)">
                <thead>
                    <tr>
                        <th class="yxt14center" style="width:60px;">
                            <div class="checkbox-inline i-checks" ng-click="selectAll()">
                                <input type="checkbox" ng-checked="selectList.length==yxt14datalist.length&&selectList.length!=0">
                                <i></i>
                            </div>
                        </th>
                        <th class="yxt14left" title="归档日期" style="width:100px;">归档日期 <i class="yxt14sort" ng-click="order('archiveDate')"></th>
                        <th class="yxt14left" title="用户名" style="width:100px;">用户名</th>
                        <th class="yxt14left" title="业务名称" style="width:100px;">业务名称</th>
                        <th class="yxt14left" title="推广id" style="width:100px;">推广id</th>
                        <th class="yxt14left" title="链接" style="width:100px;">链接</th>
                        <th class="yxt14left" title="UV数" style="width:100px;">UV数</th>
                        <th class="yxt14left" title="调整后的UV数" style="width:100px;">调整后<br />UV数</th>
                        <th class="yxt14left" title="收入单价" style="width:100px;">收入单价</th>
                        <th class="yxt14left" title="收入金额" style="width:100px;">收入金额</th>
                        <th class="yxt14left" title="收入总金额" style="width:100px;">收入总金额</th>
                        <th class="yxt14left" title="收入状态" style="width:100px;">收入状态</th>
                        <th class="yxt14left" title="归档状态" style="width:100px;">归档状态</th>
                        <th class="yxt14left" title="拆分状态" style="width:100px;">拆分状态</th>
                        <th class="yxt14center" title="操作" style="width:100px;">操作</th>
                    </tr>
                </thead>
                <tbody ng-show="!yxt14datalist.length && !yxt14loading">
                    <tr>
                        <td colspan="99"><center>无数据</center></td>
                    </tr>
                </tbody>
                <tbody ng-repeat="row in yxt14datalist">
                    <tr>
                        <td class="yxt14center">
                            <div class="yxt14ellipsis">
                                <label class="checkbox-inline i-checks">
                                    <input type="checkbox" checklist-model="selectList" checklist-value="row.adId">
                                    <i></i>
                                </label>
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.archiveDate }}">
                            <div class="yxt14ellipsis">
                                {{ row.archiveDate }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.userName }}">
                            <div class="yxt14ellipsis">
                                {{ row.userName }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.bizName }}">
                            <div class="yxt14ellipsis">
                                {{ row.bizName }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.adId }}">
                            <div class="yxt14ellipsis">
                                {{ row.adId }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.url }}">
                            <div class="yxt14ellipsis">
                                {{ row.url }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.uvCount }}">
                            <div class="yxt14ellipsis">
                                {{ row.uvCount }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.uvAdjustCount }}">
                            <div class="yxt14ellipsis">
                                {{ row.uvAdjustCount }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.price }}">
                            <div class="yxt14ellipsis">
                                {{ row.price }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.amount }}">
                            <div class="yxt14ellipsis">
                                {{ row.amount }}
                            </div>
                        </td>
                        <td class="yxt14left" title="{{ row.xxx }}">
                            <div class="yxt14ellipsis">
                                {{ row.xxx }}
                            </div>
                        </td>
                        <td class="yxt14center" title="{{ row.incomeType }}">
                            <div class="yxt14ellipsis">
                                {{ {'0':'预估','1':'暂定','2':'封账'}[row.incomeType]||'-' }}
                            </div>
                        </td>
                        <td class="yxt14center" title="{{ row.archiveState }}">
                            <div class="yxt14ellipsis">
                                {{ {'0':'未归档','1':'已归档'}[row.archiveState]||'-' }}
                            </div>
                        </td>
                        <td class="yxt14center" title="{{ row.splitState }}">
                            <div class="yxt14ellipsis">
                                {{ {'-1':'失败','1':'成功','0':'初始状态'}[row.splitState]||'-' }}
                            </div>
                        </td>
                        <td class="yxt14center">
                            <a ng-click="adjustmentItem(row)" style="margin-right:10px">调整</a>
                            <a ng-click="eidtItem(row)" style="margin-right:10px">编辑</a>
                            <a ng-click="deleteItem(row)" style="margin-right:10px">删除</a>
                            <a ng-click="openItem(row)" style="margin-right:10px">开启</a>
                        </td>
                    </tr>
                </tbody>
                <tbody ng-show="yxt14loading">
                    <tr class="yxt14loading">
                        <td colspan="99">
                            <center>数据加载中……</center>
                            <div> <div class="sk-spinner sk-spinner-wave"> <div class="sk-rect1"></div> <div class="sk-rect2"></div>
                            <div class="sk-rect3"></div> <div class="sk-rect4"></div> <div class="sk-rect5"></div> </div> </div>
                        </td>
                    </tr>
                </tbody>
                </table>
            </div>
            <div class="main-table-info">
                <div class="main-table-info-msg"> <h6>{{showMessage()}}</h6> </div>
                <div class="pull-right">
                    <uib-pagination total-items="yxt14totalrow" ng-model="page" max-size="3"
                        first-text="第一页" items-per-page="pagesize" ng-change="pageChanged()"
                        previous-text="上一页" next-text="下一页" last-text="最后页"
                        boundary-links="true" boundary-link-numbers="true">
                    </uib-pagination>
                </div>
            </div>
        </div>
    </div>
</div>